<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* div{
            width: 0;
            height: 0;
            border-left: 40px solid transparent;
            border-right: 40px solid transparent;
            border-bottom: 40px solid blue;
            border-top: 40px solid transparent;
            margin: 100px auto;
        } */
    </style>
</head>
<body>
    <div></div>
    <!-- <script>
        const obj = {
            name: '蔡徐坤',
            age: 18,
            hobby: '舞动绿茵',
            address: '日本'
        }

        // 原始版遍历对象：for-in循环
        // for (const key in obj) {
        //     // console.log(key)
        //     console.log(obj[key])
        // }

        // Object.keys(对象)：把对象的键以数组的形式返回
        // console.log(Object.keys(obj))

        // Object.keys(obj).sort().forEach(key => {
        //     console.log(obj[key])
        // })
    </script> -->
</body>
</html>